package com.baoyouqun.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName(value = "order_record", autoResultMap = true)
public class OrderRecord implements

        Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;

    @ApiModelProperty(value = "用户ID（关联用户表）")
    private String userId;

    @ApiModelProperty(value = "订单类型")
    private String type;

    @ApiModelProperty(value = "订单总金额（元）")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "实付金额（元，可开票金额）")
    private BigDecimal payAmount;

    @ApiModelProperty(value = "订单状态 ")
    private Byte status;

    @ApiModelProperty(value = "发票状态（0-未开票，1-已申请 10已开具）")
    private String invoiceStatus;

    @ApiModelProperty(value = "支付时间")
    private LocalDateTime payTime;

    @ApiModelProperty(value = "用户备注")
    private String remark;

    @ApiModelProperty(value = "是否兑换会员")
    private Boolean vipExpire;

    @ApiModelProperty(value = "最后更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;


}